package br.com.takashii.lp.web;

import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.com.takashii.lp.domain.Empresa;

@Resource
public class EmpresasController {

	private final Result result;

	public EmpresasController(Result result) {
		this.result = result;
	}
	
	
	@Get
	@Path("/empresas")
	public void principal() {
		Empresa empresa = new Empresa();
		result.include("titulo", empresa.getTitulo());
		result.include("conteudo", empresa.getConteudo());
		result.forwardTo("/WEB-INF/jsp/empresas/form.jsp");
	}
}
